Hệ thống quản lý phòng khám trực tuyến bằng PHP

1 <script>
2     $j(function(){
3         
var tn = 'events';
4
5         
/* data for selected record, or defaults if none is selected */
6         
var data = {
7             name_patient: { id:
'<?php echo $rdata['name_patient']; ?>', value: '<?php echo $rdata['name_patient']; ?>', text: '<?php echo $jdata['name_patient']; ?>' }
8         };
9
10         
/* initialize or continue using AppGini.cache for the current table */
11         AppGini.cache = AppGini.cache || {};
12         AppGini.cache[tn] = AppGini.cache[tn] || AppGini.ajaxCache();
13         
var cache = AppGini.cache[tn];
14
15         
/* saved value for name_patient */
16         cache.addCheck(function(u, d){
17             
if(u != 'ajax_combo.php') return false;
18             
if(d.t == tn && d.f == 'name_patient' && d.id == data.name_patient.id)
19                 
return { results: [ data.name_patient ], more: false, elapsed: 0.01 };
20             
return false;
21         });
22
23         cache.start();
24     });
25 </script>


Gõ tìm kiếm nhanh...